﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserView.master" AutoEventWireup="true" CodeBehind="Feedback.aspx.cs" Inherits="BestBuy.UserViews.Feedback" %>
<%@ Register TagPrefix="uc" TagName="MessagePanel" Src="~/UserControls/MessagePanel.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <h1> Feedback</h1>
        <asp:GridView ID="gvFeedback" runat="server" Width="100%" 
            AutoGenerateColumns="False" OnRowDataBound="gvFeedback_RowDataBound" 
            ondatabound="gvFeedback_DataBound">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:HyperLink ID="linkAuction" runat="server"></asp:HyperLink>
                    </HeaderTemplate>
                    <ItemTemplate>
                        From&nbsp;&nbsp; :&nbsp;
                        <asp:Label ID="lbFromUser" runat="server" Text=""></asp:Label>
                        &nbsp;&nbsp;
                        <br />
                        To&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;
                        <asp:Label ID="lbToUser" runat="server" Text=""></asp:Label>
                        <br />
                        Rating :
                        <asp:Label ID="lbRating" runat="server" Text=""></asp:Label>
                        <hr />
                        <asp:Label ID="lbComment" runat="server" Text=""></asp:Label>
                        <br /><br />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <uc:MessagePanel ID="FeedbackMessage" runat="server" />
        <asp:Panel ID="CommentPanel" runat="server" Visible="false">
            <span> Comment :</span><br />
            <span> Rating:
            <asp:DropDownList ID="cbRating" runat="server" Width="50px">
                <asp:ListItem Value="1" Text="1" Selected="True"></asp:ListItem>
                <asp:ListItem Value="2" Text="2"></asp:ListItem>
                <asp:ListItem Value="3" Text="3"></asp:ListItem>
                <asp:ListItem Value="4" Text="4"></asp:ListItem>
                <asp:ListItem Value="5" Text="5"></asp:ListItem>
            </asp:DropDownList>
            </span>
            <div align="center">
                <asp:TextBox ID="txtComment" Text="" runat="server" TextMode="MultiLine" 
                    Width="90%"></asp:TextBox>
                <br />
                <asp:HiddenField ID="AuctionID" runat="server" />
                <asp:Button CssClass="btn" ID="btnPostComment" runat="server" Text="Post" 
                    onclick="btnPostComment_Click" />
                <br />
            </div>
        </asp:Panel>
    </div>
</asp:Content>
